package com.yunwushanhe.controller;



import com.yunwushanhe.bean.ret.ResponseResult;
import com.yunwushanhe.bean.vo.ArticleDetailVO;
import com.yunwushanhe.bean.vo.LinkVO;
import com.yunwushanhe.service.LinkService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;

/**
 * 友链(Link)表控制层
 *
 * @author 抬头看看天
 * @since 2023-08-05 21:43:32
 */
@RestController
@RequestMapping("/link")
public class LinkController {

    @Resource
    private LinkService linkService;

    @GetMapping("/getAllLink")
    public ResponseResult<List<LinkVO>> getAllLink(){
        return linkService.getAllLink();
    }

}

